home *** CD-ROM | disk | FTP | other *** search
- Path: halon.vggas.com!news
- From: JYoungman@vggas.com (James Youngman)
- Newsgroups: comp.lang.c++
- Subject: mixing static and const qualifiers for class members
- Date: 13 Mar 1996 14:43:15 GMT
- Organization: VG Gas Analysis Systems
- Message-ID: <4i6mu3$pmg@halon.vggas.com>
- NNTP-Posting-Host: 132.147.163.4
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.7
-
- How do I declare and initialise a one-per-class constant? I want to do
- something like this:
-
- class Foo
- {
- static const int nPositions = 6;
- int nData[nPositions];
- }
-
- ...how is this done?
- James.
-
-